package com.huixin.zhang.service.impl;


import com.huixin.zhang.persistence.dao.BaseUserDao;
import com.huixin.zhang.persistence.entity.BaseUser;
import com.huixin.zhang.service.BaseUserService;
import com.huixin.zhang.service.core.impl.LongIDEntityServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
 * 系统用户-管理员信息(BaseUser)表服务实现类
 *
 * @author makejava
 * @since 2021-03-04 18:34:51
 */
@Service("baseUserService")
public class BaseUserServiceImpl extends LongIDEntityServiceImpl<BaseUser, BaseUserDao> implements BaseUserService {
    @Resource
    private BaseUserDao baseUserDao;

    @Override
    protected BaseUserDao getBasicIDEntityDao() {
        return baseUserDao;
    }

    @Override
    public BaseUser findByLoginName(String username) {
        return baseUserDao.findByLoginName(username);
    }
}
